package ming;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

@WebServlet(name = "MainServlet",urlPatterns="/main")
public class MainServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        response.setContentType("text/html;charset=utf-8");
        System.out.println("request.getRequestDispatcher");

//        request.getRequestDispatcher("/login.jsp").forward(request,response);

        response.sendRedirect("/code_war_exploded/main.jsp");

    }
}
